#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdbool.h>

bool isThree(int n) {
    int i = 0;
    int mid = 0;
    for (i = 1; i <= n; i++)
    {
        if (n % i == 0)
            mid++;
    }
    return mid == 3;
}